package com.aimei520.po.admin;

import java.util.Date;

/**
 * 用户信息类 定义用户名密码等信息
 * Title: User.java
 * Description:  
 * Copyright: Copyright (c) 2018
 * Company: www.storyboy.xyz 
 * @author JiaXun  
 * @date 2018年8月31日  
 * @version 1.0.0
 */
public class User {

	private int id;
	private String username;
	private String password;
	private int roleId;
	private String sex;
	private String name;
	private String phone;
	private String email;
	private int status;
	private Date createtime;

	private Role role;

	public User() {
		
	}
	
	public User(String username, String password, int roleId, String sex, String name, String phone,
			String email, int status, Date createtime) {
		this.username = username;
		this.password = password;
		this.roleId = roleId;
		this.sex = sex;
		this.name = name;
		this.phone = phone;
		this.email = email;
		this.status = status;
		this.createtime = createtime;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", roleId=" + roleId + ", sex="
				+ sex + ", name=" + name + ", phone=" + phone + ", email=" + email + ", status=" + status
				+ ", createtime=" + createtime + ", role=" + role + "]";
	}
	
}
